#include <d3d9.h>
#include <d3dx9.h>
#include "Vertex.h"
#include "GlobalVariables.h"

class CSkybox
{
public:
	
			CSkybox();
	virtual ~CSkybox();

	D3DXMATRIX				m_mtxWorld;
	BOOL					InitSkyboxTexture(LPDIRECT3DDEVICE9 d3ddv);
	void					SetRenderState(LPDIRECT3DDEVICE9 d3ddv);
	void					BuildSkybox(LPDIRECT3DDEVICE9 d3ddv);
	void					RenderSkybox(LPDIRECT3DDEVICE9 d3ddv);
	void					Release();

	LPDIRECT3DTEXTURE9		m_pTexture[6];
	LPDIRECT3DVERTEXBUFFER9	m_pVb;
};